package com.test.service;

import java.util.Date;
import java.util.List;

import com.github.pagehelper.PageInfo;
import com.test.domain.TAccountuser;
import com.test.domain.User;

public interface UserService extends BaseService<User>{

	User findUserByUserName(String userName);
	Boolean updatePassword(int id,String newPassword);
	Boolean insterInformation(String name,String gender,String cardid,String mobile,String resume,String companyid);

	/**
	 * 批量删除
	 * @param idsStr
	 */
	void deleteBatchByIds(String[] idsStr);
	List<User> getUserCompany();
	PageInfo<User> getListByPage(int currentNum, int pageSize, String name);
	TAccountuser getInformById(int id);
	PageInfo<TAccountuser> getCompanyInformListByPage(int currentNum, int pageSize, String name,String companyid);//根据公司id获取用户信息
	

	/**
	 * 绑定用户和角色
	 * @param userId
	 * @param roleIds
	 */
	void saveUserRole(int userId, String roleIds);

}
